package com.dl.mall.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @author DL
 * @create 2022-03-23 15:23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "Product",description = "商品实体类")
public class Product implements Serializable {
    private String productId;// 产品id
    private Integer categoryId;// 类别id
    private Integer brandId;// 品牌id
    private String name;// 产品名称
    private String title;// 标题
    private String describe;// 描述
    private String detail;// 详情
    private String mainImg;// 主图
    private String subImg;// 副图
    private String attributeList;// 规格属性
    private BigDecimal price;// 价格
    private Integer state;// 状态
    private Timestamp createTime;// 创建时间
    private Timestamp updateTime;// 更新时间

}
